<?php   
require_once(dirname(__FILE__)  . '/lib/Doctrine.php');   
spl_autoload_register(array('Doctrine',  'autoload'));   
$conn  =  Doctrine_Manager::connection('mysql://root:root@localhost/qalay',  'doctrine');   
Doctrine_Core::generateModelsFromDb('models',  array('doctrine'), array('generateTableClasses' => true));  
